<!---RECENT NEWS----------------------------------------------------------------> 
<?php
# RECENT NEWS -->    
$recent_news = $this->commoncall->get_recent_news(5);
?>


<?php if (isset($recent_news)) { ?>
    <div class="box_2">
        <div class="title bold reg">Recent News
            <a href="#" class="detail_search inline-block bold fright">See all</a>
        </div>
        <div class="small_text_box">
            <ul>
                <?php foreach ($recent_news as $recent_news): ?>
                    <li> <?= $recent_news->date; ?> - <a href="<?= base_url(); ?>view/news/<?= url_title($recent_news->title); ?>/<?= $recent_news->id; ?>">  <?= substr($recent_news->title, 0, 100); ?>...</a></li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
<?php } ?>
